<?php
namespace Home\Controller;

class IndexController extends CommonController
{
    public function index(){
    	$model = D('index');
    	$listData = $model -> field('foodname,foodconstruct,foodimg,foodprice') -> select();
    	$this -> assign('listData', $listData);
    	$this -> display();
    }
}